package com.example.competitionregistration.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Repository;

import java.time.OffsetDateTime;

/**
 * @Author ZhangJun
 * @Description 由赛事发布者上传，供访客下载的文件
 * @Date 2023/7/11
 **/
@Repository
@Data
@TableName("attachement")
public class Attachement {
    @TableId(type = IdType.ASSIGN_UUID)
    public String id;
    @TableField("uploader_id")
    public String uploaderId;
    @TableField("uploader_type")
    public String uploaderType;
    @TableField("upload_time")
    public OffsetDateTime uploadTime;
    @TableField("storage_paths")
    public String storagePaths;
    @TableField("file_name")
    public String fileName;
    @TableField("gmt_time")
    public OffsetDateTime gmtTime;
    @TableField("gmt_modified")
    public OffsetDateTime gmtModified;
}
